namespace Storyteller.Framework.Math
{
	public struct Rectangle : System.IEquatable<Rectangle>
	{
		public int X { get; set; }
		public int Y { get; set; }

		public int Width { get; set; }
		public int Height { get; set; }

		public Rectangle(int x, int y, int width, int height)
			: this()
		{
			X = x;
			Y = y;
			Width = width;
			Height = height;
		}

		public bool Equals(Rectangle other)
		{
			return (X == other.X && Y == other.Y && Width == other.Width && Height == other.Height);
		}
	}
}
